package com.atguigu.daijia.payment.service;

import com.atguigu.daijia.model.form.payment.PaymentInfoForm;
import com.atguigu.daijia.model.vo.payment.WxPrepayVo;
import jakarta.servlet.http.HttpServletRequest;

public interface WxPayService {

    /**
     * 调用微信 JSAPI 下单接口，获取预支付交易会话标识
     * @param paymentInfoForm
     * @return
     */
    WxPrepayVo createWxPayment(PaymentInfoForm paymentInfoForm);

    /**
     * 查询订单支付状态
     * @param orderNo
     * @return
     */
    Boolean queryPayStatus(String orderNo);

    /**
     * 微信支付结果异步通知
     * @param request
     */
    void wxNotify(HttpServletRequest request);

    /**
     * 处理订单
     * @param orderNo
     */
    void handleOrder(String orderNo);
}
